<?php
$this->breadcrumbs = array(
    'Event' => array('index'),
    'Create'
);
?>
<div class="box">
    <header>
        <h5>Create Event</h5>
    </header>
    <div class="body">
	<?php
	$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	    'id' => 'event-form',
//	    'enableAjaxValidation' => false,
//	    'enableClientValidation' => true,
//	    'clientOptions' => array(
//		'validateOnSubmit' => true
//	    ),
	    'type' => 'horizontal',
	    'htmlOptions' => array(
		'enctype' => 'multipart/form-data'
	    )
	));
	?>
	<?php echo Yii::app()->user->getFlash('success'); ?>
	<?php echo $form->errorSummary($model) ?>
	<div class="control-group">
	    <label class="control-label required" for="Event_title">Title <span class="required">*</span></label>
	    <div class="controls">
		<?php echo $form->textField($model, 'title') ?>	
	    </div>
	</div>

	<?php
	echo $form->datePickerRow($model, 'start', array(
	    'options' => array(
		'format' => 'yyyy-mm-dd'
	    )
	))
	?>
	<div class="control-group">
	    <label class="control-label required" for="Event_title">Description <span class="required">*</span></label>
	    <div class="controls">
		<?php echo $form->textArea($model, 'description'); ?>

	    </div>
	</div>
	<div class="control-group">
	    <label class="control-label required" for="Event_title">.</label>
	    <div class="controls">
		<button type="submit" class="btn btn-warning" name="submit">Save</button>
	    </div>
	</div>

	<?php $this->endWidget(); ?>
    </div>
</div>